/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-13 21:06:04
 * @Last modified by:   ls-mac
 * @Last modified time: 2019-08-16 15:09:13
 */

import request from '../utils/reqaxios';

// 合同

// /contract/addOrEdit
// 合同新增或修改
export async function contractAddOrEdit(params) {
  return request({
    url: '/contract/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /contract/detail
// 合同详情
export async function contractDetail(params) {
  return request({
    url: '/contract/detail',
    method: 'post',
    data: params,
  });
}

// /contract/list
// 合同列表
export async function getContractList(params) {
  return request({
    url: '/contract/list',
    method: 'post',
    data: params,
  });
}

// /contract/page
// 合同分页列表
export async function contractPage(params) {
  return request({
    url: '/contract/page',
    method: 'post',
    data: params,
  });
}
